﻿using Masapan_shop.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Masapan_shop.Controllers
{
    public class HomeController : Controller
    {
        private MasapanContext db = new MasapanContext();

        public ActionResult Index()
        {
            var lista = db.productos.ToList();
            return View(model: lista);
        }

    }
}
